-- GENERATED SPELL FOR [Ethereum Assassin] --


function spell0_20452(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20452', 623, 1)
end

function spell1_20452(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(34802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20452', 6297, 1)
end

function Sorts_20452(pUnit, Event)
local choix_sorts_20452 = math.random(0, 1)
if choix_sorts_20452 == 0 then
pUnit:RegisterEvent('spell0_20452', 1, 1)
end
if choix_sorts_20452 == 1 then
pUnit:RegisterEvent('spell1_20452', 1, 1)
end
end

function mob20452_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20452', math.random(1500, 3000), 1)
end

function mob20452_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20452_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20452_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20452, 1, 'mob20452_Action')
RegisterUnitEvent(20452, 2, 'mob20452_Leave')
RegisterUnitEvent(20452, 3, 'mob20452_Kill')
RegisterUnitEvent(20452, 4, 'mob20452_Die')
